package com.shy.collect.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shy.collect.entity.UserPayConfig;
import com.shy.collect.entity.UserPayInfo;
import com.shy.configs.mvc.models.query.UserPayConfigQuery;

import java.util.List;

public interface UserPayConfigService {
    /**
     * 分页查询
     * @param pageNo
     * @param pageSize
     * @return
     */
    IPage<UserPayConfig> pageList(Integer pageNo, Integer pageSize);

    /**
     * 添加支付配置
     * @param userPayConfigQuery
     */
    void addPayConfig(UserPayConfigQuery userPayConfigQuery);

    /**
     * 查看商户支付配置
     * @param userNo
     * @return
     */
    List<UserPayInfo> configView(String userNo, String productCode);

    /**
     * 删除支付配置
     * @param userNo
     * @param productCode
     */
    void deletePayConfig(String userNo, String productCode);
}
